package cn.texous.demo.startert.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * insert description here.
 *
 * @author Showa.L
 * @since 2019/10/14 9:35
 */
@Data
@Component
//@ConfigurationProperties(value = "sms")
public class SmsProperties {

    private int order;
    private Template template;
    private AliYunSmsProperties aliyun = new AliYunSmsProperties();
    private YunZhiXunSmsProperties yunzhixin = new YunZhiXunSmsProperties();

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    private static final class Template {

        private Map<String, String> aliyun;
        private Map<String, String> yunzhixin;

    }

}
